home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
801_900
/
DISK0848
/
DISK0848.ZIP
/
INSTALLJ.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-06-21
|
4KB
|
128 lines
@echo off
rem JUDY Installation Batch Job -- copyright InterFact Software, 1990
rem
if %1z == z goto message
rem
echo ╔════════════════════════════════════════════════╗
echo ║ JUDY INSTALLATION BATCH JOB ║
echo ║ This batch job will copy all necessary files ║
echo ║ from the distribution diskette in the current ║
echo ║ drive to the destination drive and directory ║
echo ║ you have indicated. ║
echo ║ If you already have JUDY files in the target ║
echo ║ directory, this batch job will overwrite them. ║
echo ║ Any CALENDAR, ADDRESS, EXPENSES & IDEA files, ║
echo ║ however, will remain untouched. ║
echo ║ If this is not what you want, hit Ctrl-C now ║
echo ║ and terminate this batch job. ║
echo ║ Otherwise, to install JUDY press any key... ║
echo ╚════════════════════════════════════════════════╝
echo.
pause>nul
echo Making Directory %1...
md %1
echo.
echo.
if exist judyk.com goto dojudy
echo
echo ERROR
echo JUDYK.COM not found on distribution diskette.
echo Installation aborted. Check disk and try again.
goto done
:dojudy
echo Copying JudyK.com...
copy judyk.com %1 >nul
rem
if exist jk.com goto dojk
echo
echo ERROR
echo JK.COM not found on distribution diskette.
echo Installation aborted. Check disk and try again.
goto done
:dojk
echo Copying JK.com...
copy jk.com %1 >nul
rem
if exist phone.exe goto dophone
echo
echo ERROR
echo PHONE.EXE not found on distribution diskette.
echo Installation aborted. Check disk and try again.
goto done
:dophone
echo Copying Phone.exe...
copy phone.exe %1 >nul
rem
if exist judy.hlp goto dohelp
echo
echo ERROR
echo JUDY.HLP not found on distribution diskette.
echo Installation aborted. Check disk and try again.
goto done
:dohelp
echo Copying Judy.hlp...
copy judy.hlp %1 >nul
rem
if exist judy.doc goto dodoc
echo
echo ERROR
echo JUDY.DOC not found on distribution diskette.
echo Installation aborted. Check disk and try again.
goto done
:dodoc
echo Copying Judy.doc...
copy judy.doc %1 >nul
rem
if exist judy.bat goto dobat
echo
echo ERROR
echo JUDY.BAT not found on distribution diskette.
echo Installation aborted. Check disk and try again.
goto done
:dobat
echo Copying Judy.bat...
copy judy.bat %1 >nul
echo.
echo.
if not exist %1\judyk.com goto whoops
if not exist %1\jk.com goto whoops
if not exist %1\judy.hlp goto whoops
if not exist %1\judy.doc goto whoops
if not exist %1\phone.exe goto whoops
if not exist %1\judy.bat goto whoops
rem
rem
echo All files copied...Installation successful.
echo Please remove diskette and refer to documentation to
echo configure JUDY for your system. See section on "Running JudyK
echo the First Time."
goto done
:message
echo
echo ╔════════════════════════════════════════════════╗
echo ║ SYNTAX ERROR ║
echo ║ INSTALLJ needs a destination path, including ║
echo ║ both the drive and the directory. First change ║
echo ║ to the drive with the distribution diskette. ║
echo ║ Then type INSTALLJ followed by the drive and ║
echo ║ directory where you want JUDY to reside. For ║
echo ║ example, to install JUDY in a \JUDY directory ║
echo ║ on the C: drive, type ║
echo ║ ║
echo ║ INSTALLJ c:\JUDY ║
echo ║ ║
echo ╚════════════════════════════════════════════════╝
goto done
:whoops
echo
echo ╔════════════════════════════════════════════════╗
echo ║ ERROR ║
echo ║ A file was not properly transferred. ║
echo ║ Please check target pathname and try again. ║
echo ╚════════════════════════════════════════════════╝
goto done
:done
echo.
echo.
echo.